import request from '/@/utils/request';

export function usePFOInstanceApi() {
    return {
        queryPFOInstanceList: (data: object) => {
            return request({
                url: '/api/placeFollowOrder/instance/queryList',
                method: 'post',
                data,
            });
        },

        deletePFOInstance: (data: object) => {
            return request({
                url: '/api/placeFollowOrder/instance/delete',
                method: 'post',
                data,
            });
        },

        savePFOInstance: (data: object) => {
            return request({
                url: '/api/placeFollowOrder/instance/save',
                method: 'post',
                data,
            });
        },

        selectPFOInstance: (data: object) => {
            return request({
                url: '/api/placeFollowOrder/instance/select',
                method: 'post',
                data,
            });
        },

        queryProductTree: (data: object) => {
            return request({
                url: '/api/placeFollowOrder/instance/queryProductTree',
                method: 'post',
                data,
            });
        },

    };
}